\(\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx\) [1127]
Optimal result
Integrand size = 28, antiderivative size = 76 \[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=-\frac {2 i a \text {arctanh}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{(c-i d)^{3/2} f}-\frac {2 a}{(i c+d) f \sqrt {c+d \tan (e+f x)}}
\]
[Out]
-2*I*a*arctanh((c+d*tan(f*x+e))^(1/2)/(c-I*d)^(1/2))/(c-I*d)^(3/2)/f-2*a/(I*c+d)/f/(c+d*tan(f*x+e))^(1/2)
Rubi [A] (verified)
Time = 0.19 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.00, number of
steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3610, 3618, 65, 214}
\[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=-\frac {2 i a \text {arctanh}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{f (c-i d)^{3/2}}-\frac {2 a}{f (d+i c) \sqrt {c+d \tan (e+f x)}}
\]
[In]
Int[(a + I*a*Tan[e + f*x])/(c + d*Tan[e + f*x])^(3/2),x]
[Out]
((-2*I)*a*ArcTanh[Sqrt[c + d*Tan[e + f*x]]/Sqrt[c - I*d]])/((c - I*d)^(3/2)*f) - (2*a)/((I*c + d)*f*Sqrt[c + d
*Tan[e + f*x]])
Rule 65
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]
Rule 214
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]
Rule 3610
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(b
*c - a*d)*((a + b*Tan[e + f*x])^(m + 1)/(f*(m + 1)*(a^2 + b^2))), x] + Dist[1/(a^2 + b^2), Int[(a + b*Tan[e +
f*x])^(m + 1)*Simp[a*c + b*d - (b*c - a*d)*Tan[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c
- a*d, 0] && NeQ[a^2 + b^2, 0] && LtQ[m, -1]
Rule 3618
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c*(
d/f), Subst[Int[(a + (b/d)*x)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &&
NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]
Rubi steps \begin{align*}
\text {integral}& = -\frac {2 a}{(i c+d) f \sqrt {c+d \tan (e+f x)}}+\frac {\int \frac {a (c+i d)+a (i c-d) \tan (e+f x)}{\sqrt {c+d \tan (e+f x)}} \, dx}{c^2+d^2} \\ & = -\frac {2 a}{(i c+d) f \sqrt {c+d \tan (e+f x)}}-\frac {\left (a^2 (c+i d)\right ) \text {Subst}\left (\int \frac {1}{\left (a^2 (i c-d)^2+a (c+i d) x\right ) \sqrt {c+\frac {d x}{a (i c-d)}}} \, dx,x,a (i c-d) \tan (e+f x)\right )}{(i c+d) f} \\ & = -\frac {2 a}{(i c+d) f \sqrt {c+d \tan (e+f x)}}-\frac {\left (2 a^3 (c+i d)^2\right ) \text {Subst}\left (\int \frac {1}{a^2 (i c-d)^2-\frac {a^2 c (i c-d) (c+i d)}{d}+\frac {a^2 (i c-d) (c+i d) x^2}{d}} \, dx,x,\sqrt {c+d \tan (e+f x)}\right )}{(c-i d) d f} \\ & = -\frac {2 i a \text {arctanh}\left (\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d}}\right )}{(c-i d)^{3/2} f}-\frac {2 a}{(i c+d) f \sqrt {c+d \tan (e+f x)}} \\
\end{align*}
Mathematica [C] (verified)
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.46 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.78
\[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=\frac {2 i a \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},\frac {c+d \tan (e+f x)}{c-i d}\right )}{(c-i d) f \sqrt {c+d \tan (e+f x)}}
\]
[In]
Integrate[(a + I*a*Tan[e + f*x])/(c + d*Tan[e + f*x])^(3/2),x]
[Out]
((2*I)*a*Hypergeometric2F1[-1/2, 1, 1/2, (c + d*Tan[e + f*x])/(c - I*d)])/((c - I*d)*f*Sqrt[c + d*Tan[e + f*x]
])
Maple [B] (verified)
Both result and optimal contain complex but leaf count of result is larger than twice the leaf
count of optimal. 2445 vs. \(2 (64 ) = 128\).
Time = 0.68 (sec) , antiderivative size = 2446, normalized size of antiderivative =
32.18
| | |
method | result | size |
| | |
derivativedivides |
\(\text {Expression too large to display}\) |
\(2446\) |
default |
\(\text {Expression too large to display}\) |
\(2446\) |
parts |
\(\text {Expression too large to display}\) |
\(3685\) |
| | |
|
|
|
[In]
int((a+I*a*tan(f*x+e))/(c+d*tan(f*x+e))^(3/2),x,method=_RETURNVERBOSE)
[Out]
-I/f*a/(c^2+d^2)^(3/2)/((c^2+d^2)^(1/2)+c)/(2*(c^2+d^2)^(1/2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e)+c+(c+d*tan(f*x+e))^(1/2)*(2*(c^2+d^2)^(1/2)+2*c
)^(1/2)+(c^2+d^2)^(1/2))*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*c-2/f*a/(c^2+d^2)/(c+d*tan(f*x+e))^(1/2)*d-1/f*a/(c^2+d
^2)^(1/2)/((c^2+d^2)^(1/2)+c)/(2*(c^2+d^2)^(1/2)-2*c)^(1/2)*arctan((2*(c+d*tan(f*x+e))^(1/2)+(2*(c^2+d^2)^(1/2
)+2*c)^(1/2))/(2*(c^2+d^2)^(1/2)-2*c)^(1/2))*d-1/4/f*a/(c^2+d^2)/((c^2+d^2)^(1/2)+c)*ln((c+d*tan(f*x+e))^(1/2)
*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)-d*tan(f*x+e)-c-(c^2+d^2)^(1/2))*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*d+1/4/f*a/(c^2+d^
2)/((c^2+d^2)^(1/2)+c)*ln(d*tan(f*x+e)+c+(c+d*tan(f*x+e))^(1/2)*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)+(c^2+d^2)^(1/2))
*(2*(c^2+d^2)^(1/2)+2*c)^(1/2)*d+1/f*a/(c^2+d^2)^(1/2)/((c^2+d^2)^(1/2)+c)/(2*(c^2+d^2)^(1/2)-2*c)^(1/2)*arcta
n(((2*(c^2+d^2)^(1/2)+2*c)^(1/2)-2*(c+d*tan(f*x+e))^(1/2))/(2*(c^2+d^2)^(1/2)-2*c)^(1/2))*d+2*I/f*a/(c^2+d^2)/
(c+d*tan(f*x+e))^(1/2)*c
Fricas [B] (verification not implemented)
Both result and optimal contain complex but leaf count of result is larger than twice the leaf
count of optimal. 534 vs. \(2 (60) = 120\).
Time = 0.25 (sec) , antiderivative size = 534, normalized size of antiderivative = 7.03
\[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=\frac {{\left ({\left (c^{2} - 2 i \, c d - d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (c^{2} + d^{2}\right )} f\right )} \sqrt {\frac {4 i \, a^{2}}{{\left (-i \, c^{3} - 3 \, c^{2} d + 3 i \, c d^{2} + d^{3}\right )} f^{2}}} \log \left (\frac {{\left (2 \, a c + {\left ({\left (i \, c^{2} + 2 \, c d - i \, d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (i \, c^{2} + 2 \, c d - i \, d^{2}\right )} f\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {4 i \, a^{2}}{{\left (-i \, c^{3} - 3 \, c^{2} d + 3 i \, c d^{2} + d^{3}\right )} f^{2}}} + 2 \, {\left (a c - i \, a d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{a}\right ) - {\left ({\left (c^{2} - 2 i \, c d - d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (c^{2} + d^{2}\right )} f\right )} \sqrt {\frac {4 i \, a^{2}}{{\left (-i \, c^{3} - 3 \, c^{2} d + 3 i \, c d^{2} + d^{3}\right )} f^{2}}} \log \left (\frac {{\left (2 \, a c + {\left ({\left (-i \, c^{2} - 2 \, c d + i \, d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (-i \, c^{2} - 2 \, c d + i \, d^{2}\right )} f\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {4 i \, a^{2}}{{\left (-i \, c^{3} - 3 \, c^{2} d + 3 i \, c d^{2} + d^{3}\right )} f^{2}}} + 2 \, {\left (a c - i \, a d\right )} e^{\left (2 i \, f x + 2 i \, e\right )}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{a}\right ) + 8 \, {\left (i \, a e^{\left (2 i \, f x + 2 i \, e\right )} + i \, a\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{4 \, {\left ({\left (c^{2} - 2 i \, c d - d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (c^{2} + d^{2}\right )} f\right )}}
\]
[In]
integrate((a+I*a*tan(f*x+e))/(c+d*tan(f*x+e))^(3/2),x, algorithm="fricas")
[Out]
1/4*(((c^2 - 2*I*c*d - d^2)*f*e^(2*I*f*x + 2*I*e) + (c^2 + d^2)*f)*sqrt(4*I*a^2/((-I*c^3 - 3*c^2*d + 3*I*c*d^2
+ d^3)*f^2))*log((2*a*c + ((I*c^2 + 2*c*d - I*d^2)*f*e^(2*I*f*x + 2*I*e) + (I*c^2 + 2*c*d - I*d^2)*f)*sqrt(((
c - I*d)*e^(2*I*f*x + 2*I*e) + c + I*d)/(e^(2*I*f*x + 2*I*e) + 1))*sqrt(4*I*a^2/((-I*c^3 - 3*c^2*d + 3*I*c*d^2
+ d^3)*f^2)) + 2*(a*c - I*a*d)*e^(2*I*f*x + 2*I*e))*e^(-2*I*f*x - 2*I*e)/a) - ((c^2 - 2*I*c*d - d^2)*f*e^(2*I
*f*x + 2*I*e) + (c^2 + d^2)*f)*sqrt(4*I*a^2/((-I*c^3 - 3*c^2*d + 3*I*c*d^2 + d^3)*f^2))*log((2*a*c + ((-I*c^2
- 2*c*d + I*d^2)*f*e^(2*I*f*x + 2*I*e) + (-I*c^2 - 2*c*d + I*d^2)*f)*sqrt(((c - I*d)*e^(2*I*f*x + 2*I*e) + c +
I*d)/(e^(2*I*f*x + 2*I*e) + 1))*sqrt(4*I*a^2/((-I*c^3 - 3*c^2*d + 3*I*c*d^2 + d^3)*f^2)) + 2*(a*c - I*a*d)*e^
(2*I*f*x + 2*I*e))*e^(-2*I*f*x - 2*I*e)/a) + 8*(I*a*e^(2*I*f*x + 2*I*e) + I*a)*sqrt(((c - I*d)*e^(2*I*f*x + 2*
I*e) + c + I*d)/(e^(2*I*f*x + 2*I*e) + 1)))/((c^2 - 2*I*c*d - d^2)*f*e^(2*I*f*x + 2*I*e) + (c^2 + d^2)*f)
Sympy [F]
\[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=i a \left (\int \left (- \frac {i}{c \sqrt {c + d \tan {\left (e + f x \right )}} + d \sqrt {c + d \tan {\left (e + f x \right )}} \tan {\left (e + f x \right )}}\right )\, dx + \int \frac {\tan {\left (e + f x \right )}}{c \sqrt {c + d \tan {\left (e + f x \right )}} + d \sqrt {c + d \tan {\left (e + f x \right )}} \tan {\left (e + f x \right )}}\, dx\right )
\]
[In]
integrate((a+I*a*tan(f*x+e))/(c+d*tan(f*x+e))**(3/2),x)
[Out]
I*a*(Integral(-I/(c*sqrt(c + d*tan(e + f*x)) + d*sqrt(c + d*tan(e + f*x))*tan(e + f*x)), x) + Integral(tan(e +
f*x)/(c*sqrt(c + d*tan(e + f*x)) + d*sqrt(c + d*tan(e + f*x))*tan(e + f*x)), x))
Maxima [F(-2)]
Exception generated. \[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=\text {Exception raised: ValueError}
\]
[In]
integrate((a+I*a*tan(f*x+e))/(c+d*tan(f*x+e))^(3/2),x, algorithm="maxima")
[Out]
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(((-(2*c*d^4)/((c^2-d^2)^2>0)',
see `assume
Giac [B] (verification not implemented)
Both result and optimal contain complex but leaf count of result is larger than twice the leaf
count of optimal. 189 vs. \(2 (60) = 120\).
Time = 0.64 (sec) , antiderivative size = 189, normalized size of antiderivative = 2.49
\[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=-2 \, a {\left (\frac {1}{{\left (i \, c f + d f\right )} \sqrt {d \tan \left (f x + e\right ) + c}} - \frac {2 i \, \arctan \left (\frac {2 \, {\left (\sqrt {d \tan \left (f x + e\right ) + c} c - \sqrt {c^{2} + d^{2}} \sqrt {d \tan \left (f x + e\right ) + c}\right )}}{c \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}} - i \, \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}} d - \sqrt {c^{2} + d^{2}} \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}}}\right )}{{\left (c f - i \, d f\right )} \sqrt {-2 \, c + 2 \, \sqrt {c^{2} + d^{2}}} {\left (-\frac {i \, d}{c - \sqrt {c^{2} + d^{2}}} + 1\right )}}\right )}
\]
[In]
integrate((a+I*a*tan(f*x+e))/(c+d*tan(f*x+e))^(3/2),x, algorithm="giac")
[Out]
-2*a*(1/((I*c*f + d*f)*sqrt(d*tan(f*x + e) + c)) - 2*I*arctan(2*(sqrt(d*tan(f*x + e) + c)*c - sqrt(c^2 + d^2)*
sqrt(d*tan(f*x + e) + c))/(c*sqrt(-2*c + 2*sqrt(c^2 + d^2)) - I*sqrt(-2*c + 2*sqrt(c^2 + d^2))*d - sqrt(c^2 +
d^2)*sqrt(-2*c + 2*sqrt(c^2 + d^2))))/((c*f - I*d*f)*sqrt(-2*c + 2*sqrt(c^2 + d^2))*(-I*d/(c - sqrt(c^2 + d^2)
) + 1)))
Mupad [B] (verification not implemented)
Time = 16.27 (sec) , antiderivative size = 4612, normalized size of antiderivative = 60.68
\[
\int \frac {a+i a \tan (e+f x)}{(c+d \tan (e+f x))^{3/2}} \, dx=\text {Too large to display}
\]
[In]
int((a + a*tan(e + f*x)*1i)/(c + d*tan(e + f*x))^(3/2),x)
[Out]
(log((a^3*c*d^2*8i)/(f^3*(c^2 + d^2)^2) - ((((16*c*d^2*(c + d*tan(e + f*x))^(1/2)*((4*(-a^4*d^2*f^4*(3*c^2 - d
^2)^2)^(1/2) - 4*a^2*c^3*f^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c^3*d^
10*f^5 + 640*c^5*d^8*f^5 + 640*c^7*d^6*f^5 + 320*c^9*d^4*f^5 + 64*c^11*d^2*f^5) + 384*a*c^5*d^7*f^4 + 256*a*c^
7*d^5*f^4 + 64*a*c^9*d^3*f^4 + 64*a*c*d^11*f^4)) + 24*a^3*c^2*d^7*f^2 + 24*a^3*c^4*d^5*f^2 + 8*a^3*c^6*d^3*f^2
)*(-((96*a^4*c^2*d^4*f^4 - 16*a^4*d^6*f^4 - 144*a^4*c^4*d^2*f^4)^(1/2) + 4*a^2*c^3*f^2 - 12*a^2*c*d^2*f^2)/(16
*c^6*f^4 + 16*d^6*f^4 + 48*c^2*d^4*f^4 + 48*c^4*d^2*f^4))^(1/2) + (a*c*2i)/(f*(c^2 + d^2)*(c + d*tan(e + f*x))
^(1/2)) - (2*a*d)/(f*(c^2 + d^2)*(c + d*tan(e + f*x))^(1/2))